﻿using Stu_sys.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

namespace Stu_sys.Models
{
    public class DepViewModel
    {
        //专业id
        [Display(Name = "专业id")]
        public int DepartmentId { get; set; }

        //专业名称
        [Display(Name = "专业名称")]
        public string? DepName { get; set; }

        //专业代码
        [Display(Name = "专业代码")]
        public string? DepCode { get; set; }

        //创建时间
        [Display(Name = "创建时间")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public DateTime CreateTime { get; set; }

        //修改时间
        [Display(Name = "修改时间")]
        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public DateTime UpdateTime { get; set; }
    }
}
